# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Brian Bidulock <bidulock@openss7.org>

pkgname=xorg-xkbprint
pkgver=1.0.6
pkgrel=1
pkgdesc="Generates a PostScript description of an XKB keyboard description"
arch=(x86_64)
url="https://gitlab.freedesktop.org/xorg/app/xkbprint"
license=('custom')
depends=('libxkbfile')
makedepends=('xorg-util-macros')
groups=('xorg-apps')
source=(https://xorg.freedesktop.org/archive/individual/app/xkbprint-${pkgver}.tar.xz{,.sig})
sha512sums=('a1c2401b2a2ef4c6bd2efc18923ecb176adcf38b6c5dfdce25f22f1f5ab21e25f494b25dac25b1765fb9a0f6acc24d191cd41b9a098a9e3c6eaf9a9df490be29'
            'SKIP')
validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alan.coopersmith@oracle.com>

build() {
  cd xkbprint-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd xkbprint-$pkgver
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
}
